#ifndef CHESSNODE_H
#define CHESSNODE_H
#include "seat.h"
#include <QApplication>
#include <stdio.h>
using namespace std;




class ChessNode      //节点
{
public:
    seat chess;
    int floor;       //标识当前节点属于第几步（层）
    ChessNode* child[8];
    ChessNode* father;
    ChessNode(int a,int b,int floor)
    {
        chess = seat(a,b);
        this->floor = floor;
        father = NULL;
    }
    ChessNode(int a,int b,int floor,ChessNode* f)
    {
        chess = seat(a,b);
        this->floor = floor;
        father = f;
    }

    void setchild();
};


#endif // CHESSNODE_H
